package com.example.pandaso.factory;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.example.pandaso.engines.BaseEngine;

@Component
public class EngineFactroy {
    
    @Autowired
    private Map<String, BaseEngine> engines;
    
    public BaseEngine getEngine(String engineName){
        return engines.get(engineName);
    }
    
}
